//
//  TestSegmentMenuMainVC.m
//  YXKitOC
//
//  Created by 李鹏飞 on 2020/4/13.
//  Copyright © 2020 张鑫. All rights reserved.
//

#import "TestSegmentMenuMainVC.h"
#import "JXCategoryTitleView.h"

@interface TestSegmentMenuMainVC ()

@property (nonatomic, strong) JXCategoryTitleView *myCategoryView;

@end

@implementation TestSegmentMenuMainVC

- (void)viewDidLoad {
    if (self.titles == nil) {
        self.titles = @[@"螃蟹", @"麻辣小龙虾", @"苹果", @"苹果"];
    }

    [super viewDidLoad];

    self.myCategoryView.titles = self.titles;
}

- (JXCategoryTitleView *)myCategoryView {
    return (JXCategoryTitleView *)self.categoryView;
}

- (JXCategoryBaseView *)preferredCategoryView {
    return [[JXCategoryTitleView alloc] init];
}

@end
